home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / windows / games / 256pbx.exe / DIB.H < prev    next >
Text File  |  1992-03-12  |  1KB  |  33 lines

  1. #define PALVERSION   0x300
  2.  
  3. // Some handy macros ------------------------------------------------------
  4. //
  5. // WIDTHBYTES takes # of bits in a scan line and rounds up to nearest
  6. //  word.
  7.  
  8. #define WIDTHBYTES(bits)      (((bits) + 31) / 32 * 4)
  9.  
  10.    // Given a pointer to a DIB header, return TRUE if is a Windows 3.0 style
  11.    //  DIB, false if otherwise (PM style DIB).
  12.  
  13. #define IS_WIN30_DIB(lpbi)  ((*(LPDWORD) (lpbi)) == sizeof (BITMAPINFOHEADER))
  14.  
  15.  
  16. #define MAXREAD  32768      /* Number of bytes to be read during */
  17.                             /* each read operation                 */
  18.  
  19. /* flags for _lseek */
  20. #define  SEEK_CUR 1
  21. #define  SEEK_END 2
  22. #define  SEEK_SET 0
  23.  
  24. WORD        FAR PASCAL    DIBNumColors    (LPSTR lpbi);
  25. LPSTR        FAR PASCAL    FindDIBBits     (LPSTR lpbi);
  26. WORD        FAR PASCAL    PaletteSize     (LPSTR lpbi);
  27. HPALETTE    FAR PASCAL    CreateDIBPalette(HANDLE hDIB);
  28. DWORD        FAR PASCAL    DIBHeight       (LPSTR lpDIB);
  29. DWORD        FAR PASCAL    DIBWidth        (LPSTR lpDIB);
  30. HANDLE         FAR PASCAL     DIBLoad         (LPSTR lpszDIBName);
  31. DWORD             PASCAL    lread            (int fh, VOID far *pv, DWORD ul);
  32.  
  33.